﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace blog.Posts
{
    public partial class ShowPost : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string postid = Request.QueryString["postid"].ToString();
            UserControl.PostList postlist = (UserControl.PostList)LoadControl("~/UserControl/PostList.ascx");
            postlist.setid(Convert.ToInt32(postid));
            this.showpost.Controls.Add(postlist);
        }
    }
}